#!/bin/sh
echo "[${USER}][`date`] - run $0 $@" >> /tmp/install.log
line=`wc -l $0|awk '{print $1}'`
line=`expr $line - 13`
echo "[${USER}][`date`] - unpack data" >> /tmp/install.log
tail -n $line $0 | tar xz -C /tmp
cd /tmp/package/
chmod 777 ./install.sh
./install.sh $@
ret=$?
#
#
rm -rf /tmp/package 
exit $ret
